from dao.fault_dao import show_fault_info
from dao.fault_dao import Fault
from utils.excel_utils import save_objs_to_excel


def download_fault_info():
    fault_info = show_fault_info()
    save_objs_to_excel(fault_info, Fault, '故障记录表.xlsx')


if __name__ == '__main__':
    download_fault_info()
